package com.javafactroy.kunlong.bip.icp.message.data.netty.handler.server;

import com.javafactroy.kunlong.bip.icp.message.data.iface.AppBase;
import io.netty.handler.codec.LengthFieldBasedFrameDecoder;

import java.nio.ByteOrder;

public class DataServerLengthFieldDecoder extends LengthFieldBasedFrameDecoder {
    public DataServerLengthFieldDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength) {
        super(maxFrameLength, lengthFieldOffset, lengthFieldLength);
    }
    public DataServerLengthFieldDecoder(){
        super(AppBase.MAX_FRAME_LENGTH, AppBase.LENGTH_FIELD_OFFSET, AppBase.LENGTH_FIELD_LENGTH,
                AppBase.LENGTH_ADJUST_NETTY, 0, true);
    }
    public DataServerLengthFieldDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength,
                                        int lengthAdjustment, int initialBytesToStrip) {
        super(maxFrameLength, lengthFieldOffset, lengthFieldLength, lengthAdjustment, initialBytesToStrip);
    }

    public DataServerLengthFieldDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength,
                                        int lengthAdjustment, int initialBytesToStrip, boolean failFast) {
        super(maxFrameLength, lengthFieldOffset, lengthFieldLength, lengthAdjustment, initialBytesToStrip, failFast);
    }

    public DataServerLengthFieldDecoder(ByteOrder byteOrder, int maxFrameLength, int lengthFieldOffset,
                                        int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip,
                                        boolean failFast) {
        super(byteOrder, maxFrameLength, lengthFieldOffset, lengthFieldLength, lengthAdjustment, initialBytesToStrip, failFast);
    }


}
